<!-- 首页 -->
<template>
<div class="home-wp c-flex-1 c-flex-column c-row-center">
  <div class="wrap">
    <el-row :gutter="80">
      <el-col :span="24" :lg="16">
        <el-row :gutter="30">
          <el-col :span="8">
            <t-card to="/hosp/self-evaluation"
              height="448px"
              background="#7D88E4"
              img-height="92px"
              text="绩效考核自评">
              <img src="~@h/assets/image/icon/008.png"/>
            </t-card>
          </el-col>
          <el-col :span="16">
            <el-row :gutter="30" class="c-m-b-20">
              <el-col :span="12">
                <t-card to="/hosp/self-evaluation"
                  background="#FBBD73"
                  img-height="55px"
                  text="远程会诊监控">
                  <img src="~@h/assets/image/icon/009.png"/>
                </t-card>
              </el-col>
              <el-col :span="12">
                <t-card to="/hosp/data-upload"
                  background="#73D6AD"
                  img-height="65px"
                  text="数据上传自查">
                  <img src="~@h/assets/image/icon/010.png"/>
                </t-card>
              </el-col>
            </el-row>
            <el-row :gutter="30">
              <el-col :span="12">
                <div class="num-card">
                  <p class="label">今日门诊人次数</p>
                  <p class="value">871人次</p>
                </div>
              </el-col>
              <el-col :span="12">
                <div class="num-card">
                  <p class="label">今日住院人次数</p>
                  <p class="value">871人次</p>
                </div>
              </el-col>
            </el-row>
          </el-col>
        </el-row>
      </el-col>
      <el-col :span="24" :lg="8">
        <div class="fun-list">
          <router-link to="/hosp/home/warning" class="item">
            <div class="img-box">
              <span class="tip">1</span>
              <img src="~@h/assets/image/icon/004.png"/>
            </div>
            <div class="text">
              <span class="name">上传异常提醒</span>
              <span class="time">02-26 13:23</span>
            </div>
          </router-link>
          <router-link to="/hosp/home/warning" class="item">
            <div class="img-box">
              <span class="tip">1</span>
              <img src="~@h/assets/image/icon/005.png"/>
            </div>
            <div class="text">
              <span class="name">指标异常提醒</span>
              <span class="time">02-26 13:23</span>
            </div>
          </router-link>
          <div class="item">
            <div class="img-box">
              <img src="~@h/assets/image/icon/006.png"/>
            </div>
            <div class="text">
              <span class="name">功能开发中</span>
            </div>
          </div>
          <div class="item">
            <div class="img-box">
              <img src="~@h/assets/image/icon/007.png"/>
            </div>
            <div class="text">
              <span class="name">功能开发中</span>
            </div>
          </div>
        </div>
      </el-col>
    </el-row>
  </div>
</div>
</template>
<script>

import tCard from "./modules/card.vue";

export default {
  name: 'home',
  components: {
    tCard,
  },
  data () {
    return {
      
    }
  },
  mounted () {

  },
  methods: {

  }
}
</script>
<style lang="scss" scoped>
.home-wp {
  overflow-x: hidden;
  background: #F2F8FD;
  .wrap {
    margin: 0 auto;
    padding: 20px;
    width: 100%;
    max-width: 1540px;
    min-height: 200px;
  }

  .num-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 15px 25px;
    height: 214px;
    border-radius: 15px;
    background: #fff url(~@h/assets/image/icon/011.png) no-repeat right 15px bottom 15px;
    font-size: 28px;
    .label {
      margin-bottom: 20px;
    }
    .value {
      padding-right: 40px;
      font-weight: bold; 
    }
  }

  .fun-list {
    padding: 14px 20px;
    background: #fff;
    height: 448px;
    border-radius: 15px;
    overflow: auto;

    .item {
      display: flex;
      align-items: center;
      cursor: pointer;
      padding: 15px 20px;
      width: 100%;
      &+.item {
        border-top: 1px solid #F2F2F2;
      }
      &:nth-child(4n+1) {
        .img-box {
          background: #9BD773;
        }
      }
      &:nth-child(4n+2) {
        .img-box {
          background: #73D6AD;
        }
      }
      &:nth-child(4n+3) {
        .img-box {
          background: #7D88E4;
        }
      }
      &:nth-child(4n+4) {
        .img-box {
          background: #5897F0;
        }
      }
      .img-box {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-right: 30px;
        width: 74px;
        height: 74px;
        border-radius: 10px;
        background: #9BD773;
        .tip {
          position: absolute;
          z-index: 2;
          top: -10px;
          right: 0;
          transform: translateX(50%);
          padding: 0 5px;
          min-width: 20px;
          height: 20px;
          border-radius: 10px;
          background: red;
          color: #fff;
          line-height: 20px;
          text-align: center;
          font-size: 12px;
        }
      }
      .text {
        flex: 1;
        display: flex;
        justify-content: space-between;
        font-size: 20px;
        .name {
          font-weight: 700;
        }
      }
    }
  }
}
@media screen and (max-width: 1500px) {
  .home-wp {
    .fun-list {
      .item {
        .img-box {
          margin-right: 20px;
        }
        .text {
          flex-direction: column;
          justify-content: center;
          height: 74px;
          .time {
            margin-top: 10px;
            font-size: 16px;
          }
        }
      }
    }
  }
}
@media screen and (max-width: 1200px) {
  .home-wp {
    .num-card {
      font-size: 24px;
    }
    .fun-list {
      display: flex;
      justify-content: space-between;
      flex-wrap: wrap;
      margin: 30px 0;
      height: auto;
      &:after {
        content: '';
        flex: 260px 0;
      }
      .item {
        flex: 260px 0;
        border: none !important;
      }
    }
  }
}
</style>